﻿
@model LoginIM

@{
    ViewBag.Title = "登录";
    Layout = null;
}
<!DOCTYPE html>
<!--[if lt IE 7]>      <html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
<!--[if IE 7]>         <html class="no-js lt-ie9 lt-ie8"> <![endif]-->
<!--[if IE 8]>         <html class="no-js lt-ie9"> <![endif]-->
<!--[if gt IE 8]><!-->
<html class="no-js">
<!--<![endif]-->
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <title>@ViewBag.Title - @SettingsManager.Site.SiteName</title>

    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />

    <!--开启对web app的支持-->
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <!--主要是正对苹果手机将数字自动识别为号码-->
    <meta name="format-detection" content="telephone=no" />
    <!-- 忽略识别邮箱，主要是针对安卓手机会自动将符合邮箱格式的字符串识别为邮箱地址-->
    <meta content="email=no" name="format-detection" />
    <!-- 针对手持设备优化，主要是针对一些老的不识别viewport的浏览器，比如黑莓 -->
    <meta name="HandheldFriendly" content="true">
    <!-- 微软的老式浏览器 -->
    <meta name="MobileOptimized" content="320">
    <!-- uc强制竖屏 -->
    <meta name="screen-orientation" content="portrait">
    <!-- QQ强制竖屏 -->
    <meta name="x5-orientation" content="portrait">
    <!-- UC强制全屏 -->
    <meta name="full-screen" content="yes">
    <!-- QQ强制全屏 -->
    <meta name="x5-fullscreen" content="true">
    <!-- UC应用模式 -->
    <meta name="browsermode" content="application">
    <!-- QQ应用模式 -->
    <meta name="x5-page-mode" content="app">
    <!-- windows phone 点击无高光 -->
    <meta name="msapplication-tap-highlight" content="no">

    <meta name="author" content="doubletong">


    <link href="~/Areas/Admin/Content/bootstrap/css/bootstrap.min.css" rel="stylesheet" />
    <link href="~/Areas/Admin/Content/css/font-awesome.min.css" rel="stylesheet" />
    <link href="~/Areas/Admin/Content/css/Style.min.css" rel="stylesheet" />
    <link href="~/Plugins/toastr/toastr.min.css" rel="stylesheet" />
    <script src="~/scripts/compatibility/modernizr-2.8.3.min.js"></script>
    <!--[if lt IE 9]>
        <script src="~/scripts/compatibility/respond.min.js"></script>
    <![endif]-->
    <style>
        .btn-primary, .btn-primary:active, .btn-primary:focus {
            height: 41px;
            background-color: #4cdbc3;
            border-color: #36c1a7;
        }
            .btn-primary:hover {
                background-color: #25af94;
                border-color: #25af94;
            }
            a{
                color:#999;
            }
                a:hover {
                    color: #25af94;
                }
    </style>
</head>
<body class="page-login">

    <section class="login-container">
        <div class="panel panel-default">

            <div class="panel-heading text-center" style="background-color:#333; border-radius:0;">
                <img src="@SettingsManager.Site.LoginLogo" alt="logo" />
            </div>
            <div class="panel-body">
                <div class="container-fluid" style="padding-top:25px;">
                    @using (Html.BeginForm("Login", "Account", new { ReturnUrl = ViewBag.ReturnUrl }, FormMethod.Post, new { @class = "form-horizontal", role = "form" }))
                    {

                        @Html.AntiForgeryToken()
                        @Html.ValidationSummary(true)

                        <div class="form-group">
                            @Html.TextBoxFor(m => m.UserName, new { @class = "form-control", placeholder = "用户名" })
                            @Html.ValidationMessageFor(m => m.UserName)
                        </div>
                        <div class="form-group">
                            @Html.PasswordFor(m => m.Password, new { @class = "form-control", placeholder = "密码" })
                            @Html.ValidationMessageFor(m => m.Password)
                        </div>

                        <div class="form-group">
                            <div class="input-group">
                                @Html.TextBoxFor(m => m.CaptchaText, new { @class = "form-control", placeholder = "验证码", aria_describedby = "basic-addon2" })
                                <span class="input-group-addon" id="basic-addon2" style="padding:0;"><img src='@Url.Action("ShowCaptchaImage","Account")' alt="验证码" /></span>
                            </div>
                            @Html.ValidationMessageFor(m => m.CaptchaText)
                        </div>
                        <div class="row">
                            <div class="col-sm-6">
                                <div class="form-group">
                                    <div class="checkbox">
                                        <label>
                                            @Html.CheckBoxFor(m => m.RememberMe) 记住我
                                        </label>
                                    </div>
                                </div>
                            </div>
                            @*<div class="col-sm-6">
                                <div class="form-group text-right">
                                    <a href="@Url.Action("FindPassword")">忘记密码？</a>
                                </div>
                            </div>*@
                        </div>


                        <div class="form-group">
                            <input type="submit" class="btn btn-primary btn-block" value="登录" />
                        </div>
                    }
                </div>

            </div>
            <div class="panel-footer text-center" style="color:#999;">
                <small>Powered by <a href="@SettingsManager.Site.DeveloperDomainName">@SettingsManager.Site.Version</a></small>
            </div>
        </div>

    </section>

    @*<div class="col-md-4">
            <section id="socialLoginForm">
                @Html.Partial("_ExternalLoginsListPartial", new ExternalLoginListViewModel { ReturnUrl = ViewBag.ReturnUrl })
            </section>
        </div>*@


    <!-- The Scripts -->
    <!--[if lte IE 8]>
        <script src="~/scripts/lib/jqueryForIE/jquery-1.11.3.min.js"></script>
    <![endif]-->
    <!--[if gte IE 9]><!-->
    <script src="~/scripts/lib/jquery/jquery-2.2.0.min.js"></script>
    <!--<![endif]-->
    <script src="~/Areas/Admin/Content/bootstrap/js/bootstrap.min.js"></script>
    <script src="~/Areas/Admin/Content/js/App.min.js"></script>
    <script src="~/Plugins/bootbox/bootbox.min.js"></script>
    <script src="~/Plugins/toastr/toastr.min.js"></script>

    <script src="~/Scripts/lib/jquery/plugins/jquery.validate.min.js"></script>
    <script src="~/Scripts/lib/jquery/plugins/jquery.validate.unobtrusive.min.js"></script>



</body>
</html>
